package main

import (
	"fmt"
	"regexp"
)

// 正则表达式
func main() {

	// ([a-zA-Z])([^a-zA-Z])    a1bcdef

	str := `[abcdef11]`
	r := regexp.MustCompile(`(\[[a-zA-Z]+[\d]+\])`)
	ret := r.FindStringSubmatch(str)
	fmt.Println("匹配情况:")
	for _, v := range ret {
		fmt.Println(v)
	}

}
